﻿/* 容器整体样式 */
.custom-tie-area {
  width: 100%;
  margin: 20px auto;
}

/* 标题栏 */
.custom-tie-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.custom-title-txt {
  font-size: 18px;
}

.custom-tie-info {
  text-align: right;
}

.custom-info-txt {
  margin-right: 5px;
}

.custom-tie-act-count {
  color: red;
  text-decoration: none;
}

/* 提示信息 */
.custom-tie-reminder {
  margin: 10px 0;
  font-size: 12px;
  color: #666;
}

/* 输入区域容器 */
.custom-tie-input-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
}

/* 文本框样式 */
#commentInput {
  flex-grow: 1;
  min-height: 80px;
  padding: 10px;
  font-size: 14px;
  border-radius: 4px;
  resize: vertical;
}
/* 右侧按钮 */
.custom-login-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* 按钮通用样式 */
.btn-primary,.custom-post-comment-btn,.custom-submit-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 登录/发帖按钮统一使用 btn-primary 即可 */

/* textarea 和按钮同行布局 */
.custom-input-with-button {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

/* 登录表单区域 */
.custom-login-form-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background-color: #f9f9f9;
  border-top: none;
  padding: 10px;
  margin-top: 0;
}

/* 输入框统一样式 */
.custom-login-form-area input[type="text"],
.custom-login-form-area input[type="password"] {
  height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  min-width: 120px;
  flex: 1 1 120px;
}

/* 注册链接样式 */
.custom-login-links {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.custom-login-links a {
  color: #007bff;
  text-decoration: none;
  white-space: nowrap;
}

/* 错误消息的样式 */
.custom-icon-check-tip.custom-error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

/* 登录成功后的区域 */
.custom-logged-in-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.custom-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.custom-username {
  font-weight: bold;
  flex: 1;
}

/* 留言列表样式 */
.comment-list {
  padding: 0;
  margin: 0;
}

.com_item {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.item_img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.item_con {
  flex: 1;
  min-width: 0;
}

.com_ip_time {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.com_ip_time .fr {
  float: right;
  margin-left: 10px;
}

.com_ip_time::after {
  content: "";
  display: table;
  clear: both;
}

.com_txt {
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
}